<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>评论列表</title>
<style type="text/css">
.row-even {
	background-color: #def7c2;
}

.row-odd {
	background-color: #AADC6E;
}
</style>
</head>
<body>
	<center>
		<h1>用户评论列表</h1>
	</center>
	<div align="center">
		<table border="1">
			<tr>
				<th>评论ID</th>
				<th>新闻ID</th>
				<th>评论人</th>
				<th>评论时间</th>
				<th>评论内容</th>
				<th>管理员操作</th>
			</tr>

			<s:iterator var="comment" value="#attr.commentList" status="status">
				<tr align="center" height="30"
					class="<s:if test="#status.even">row-even</s:if><s:else>row-odd</s:else>">
					<td><s:property value="#comment.comId" /></td>
					<td><s:property value="#comment.newsId" /></td>
					<td><s:property value="#comment.comPerson" /></td>
					<td><s:property value="#comment.commTime" /></td>
					<td style="width: 200px; height: 19px;"><div
							style="width: 200px;height: 19px;overflow: hidden;white-space: nowrap;text-overflow:ellipsis; "
							title="<s:property value="#comment.content" />">
							<s:property value="#comment.content" />
						</div>
					</td>
					<td><img src="image/edit.gif"> <a
						href="updComAction!show.do?comId=<s:property value="#comment.comId"/>">
							修改</a>&nbsp;&nbsp; <img src="image/delete.gif"> <a
						href="delComAction.do?comId=<s:property value="#comment.comId"/>">
							删除</a></td>
				</tr>
			</s:iterator>
		</table>
	</div>
</body>
</html>